# _*_ coding utf-8 _*_
# george
# time: 2025/1/13上午11:25
# name: project.py
# comment:
from sqlalchemy import Table, select

from common.database import db_connection

db_session, Base, engine = db_connection()
import app.config.config
import logging

file_logger = logging.getLogger("project database log")


class Project(Base):
    __table__ = Table("project", Base.metadata, autoload_with=engine)

    def search_project(self):
        result = db_session.query(Project).all()
        return result
